@charset "UTF-8";

//
// @copyright        2017 opencart.cn - All Rights Reserved
// @link             http://www.guangdawangluo.com
// @author           Pu shuo <pushuo@opencart.cn>
// @created          2017-10-10 16:44:05
// @modified         2017-12-13 09:50:59
//

.product-wrapper{
    //padding-bottom: 48px;
}

//@media (max-width: 768px) {
//  .product-wrapper .product-layout.col-xs-6:nth-child(2n+1) {
//    padding-right: 7.5px;
//  }
//
//  .product-wrapper .product-layout.col-xs-6:nth-child(2n+2) {
//    padding-left: 7.5px;
//  }
//}


@media (max-width: $screen-xs-max) {
    .product-wrapper .product-layout.col-xs-6:nth-child(2n+2) .product-thumb{
        border-right: $default-border;
    }

    .product-wrapper .product-layout.col-xs-6:nth-child(1) .product-thumb{
        border-top: $default-border;
    }
    .product-wrapper .product-layout.col-xs-6:nth-child(2) .product-thumb{
        border-top: $default-border;
    }

    .product-wrapper .product-layout .product-thumb .image{

        //height: 360px;
    }
}

@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
    //.product-wrapper .product-layout.col-sm-6:nth-child(2n+1) .product-thumb,


    .product-wrapper .product-layout.col-sm-2:nth-child(6n+6) .product-thumb,
    .product-wrapper .product-layout.col-sm-3:nth-child(4n+4) .product-thumb,
    .product-wrapper .product-layout.col-sm-6:nth-child(2n+2) .product-thumb,
    .product-wrapper .product-layout.col-sm-4:nth-child(3n+3) .product-thumb{
        border-right: $default-border;
    }

    .product-wrapper .product-layout.col-sm-6:nth-child(1) .product-thumb,
    .product-wrapper .product-layout.col-sm-6:nth-child(2) .product-thumb,
    .product-wrapper .product-layout.col-sm-4:nth-child(1) .product-thumb,
    .product-wrapper .product-layout.col-sm-4:nth-child(2) .product-thumb,
    .product-wrapper .product-layout.col-sm-4:nth-child(3) .product-thumb{
        border-top: $default-border;
    }

    .product-wrapper .product-layout .product-thumb .image{

        //height: 360px;
    }
}

@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
    .product-wrapper .product-layout.col-md-3:nth-child(4n+4) .product-thumb,
    .product-wrapper .product-layout.col-md-4:nth-child(3n+3) .product-thumb{
        border-right: $default-border;
    }

    .product-wrapper .product-layout.col-md-4:nth-child(1) .product-thumb,
    .product-wrapper .product-layout.col-md-4:nth-child(2) .product-thumb,
    .product-wrapper .product-layout.col-md-4:nth-child(3) .product-thumb,
    .product-wrapper .product-layout.col-md-3:nth-child(1) .product-thumb,
    .product-wrapper .product-layout.col-md-3:nth-child(2) .product-thumb,
    .product-wrapper .product-layout.col-md-3:nth-child(3) .product-thumb,
    .product-wrapper .product-layout.col-md-3:nth-child(4) .product-thumb{
        border-top: $default-border;
    }


    //.product-wrapper .product-layout .product-thumb .image{
    //  width: 240px;
    //  height: 240px;
    //  padding-top: 20px;
    //  padding-bottom: 20px;
    //  margin: 0 auto;
    //  img{
    //    width: 100%;
    //    //height: 250px;
    //  }
    //}

}

@media (min-width: $screen-lg-min) {
    .product-wrapper .product-layout.col-lg-4:nth-child(3n+3) .product-thumb,
    .product-wrapper .product-layout.col-lg-3:nth-child(4n+4) .product-thumb,
    .product-wrapper .product-layout.col-lg-2:nth-child(6n+6) .product-thumb {
        border-right: $default-border;
    }

    .product-wrapper .product-layout.col-lg-4:nth-child(1) .product-thumb,
    .product-wrapper .product-layout.col-lg-4:nth-child(2) .product-thumb,
    .product-wrapper .product-layout.col-lg-4:nth-child(3) .product-thumb,
    .product-wrapper .product-layout.col-lg-3:nth-child(1) .product-thumb,
    .product-wrapper .product-layout.col-lg-3:nth-child(2) .product-thumb,
    .product-wrapper .product-layout.col-lg-3:nth-child(3) .product-thumb,
    .product-wrapper .product-layout.col-lg-3:nth-child(4) .product-thumb,
    .product-wrapper .product-layout.col-lg-2:nth-child(1) .product-thumb,
    .product-wrapper .product-layout.col-lg-2:nth-child(2) .product-thumb,
    .product-wrapper .product-layout.col-lg-2:nth-child(3) .product-thumb,
    .product-wrapper .product-layout.col-lg-2:nth-child(4) .product-thumb,
    .product-wrapper .product-layout.col-lg-2:nth-child(5) .product-thumb,
    .product-wrapper .product-layout.col-lg-2:nth-child(6) .product-thumb {
        border-top: $default-border;
    }
}

.product-wrapper .product-layout:last-child .product-thumb{
    border-right: $default-border;
}


.product-thumb {
    position: relative;
    background-color: #fff;
    border-left: $default-border;
    border-right: 1px solid transparent;
    border-bottom: $default-border;
    padding-bottom: 22px;
    width: 100%;
    .image {
        position: relative;
        a {
            img{
                width: 100%;
                height: auto;
                @include transition(all .3s ease);
                -ms-transform: scale(0.84);
                -webkit-transform: scale(0.84);
                -o-transform: scale(0.84);
                -moz-transform: scale(0.84);
                transform: scale(0.84);
            }
        }
        /*试戴的标识图标*/
        .tryon-icon {
            width: 46px;
            height: 46px;
            line-height: 68px;
            text-align: center;
            font-size: 12px;
            color: #fff;
            background-image: url("/catalog/view/theme/default/image/icon/3d_tryon.svg");
            background-repeat: no-repeat;
            background-size: cover;
            pointer-events: none;
        }
    }


    &:hover {
        //@include box-shadow(0 -1px 16px 6px #e4e4e4);
        .image > a > img{
            -ms-transform: scale(0.9);
            -webkit-transform: scale(0.9);
            -o-transform: scale(0.9);
            -moz-transform: scale(0.9);
            transform: scale(0.9);
        }
    }

    .caption, .button-group {
        padding: 0 24px;

        @media (max-width: 376px) {
            padding: 0 5px;
        }
    }

    .product-name {
        white-space: nowrap;
        height: 20px;
        margin: 0 0 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        //line-height:24px;
        a {
            color: #333333;
            font-size: 18px;
        }
    }

    .product-description {
        color: #999;
        display: none;
    }

    .rating {
        position: relative;
        padding-bottom: 19px;

        &:before {
            position: absolute;
            content: "";
            top: 28px;
            left: 0;
            height: 1px;
            width: 100px;
            background: #ddd;
        }
    }

    .price {
        color: $brand-primary;
        height:25px;
        font-size:20px;
        line-height:26px;
        font-weight: lighter;
        margin: 0 0 17px;
        @media (max-width: 768px) {
            font-size: 15px;
        }

        .price-old {
            font-weight: 500;
            color: #DFDFDF;
            text-decoration: line-through;

            @media (max-width: 768px) {
                font-size: 13px;
            }
        }
    }

    .button-group {

        .compare{
            width:59px;
            height:35px;
            padding: 0;
            &> img{
                width:53px;
                height:30px;
            }
        }
        .favor{
            width:32px;
            height:32px;
            background-image: url("/catalog/view/theme/default/image/icon_Collection6@2x.png");
            background-size: 100%;

            &:hover{
                opacity: 0.9;
            }
            &.is-favor{
                background-image: url("/catalog/view/theme/default/image/icon_Collection7@2x.png");
            }
        }

        .btn {
            padding: 0;
            border: none;
            @media (max-width: 376px) {
                padding: 4px 10px;
                font-size: 12px;
            }
            &:hover{
                background-color: transparent;
            }
        }
        .btn.compare{
            background: url("/catalog/view/theme/default/image/icon-11.svg");
            &:hover{
                opacity: 0.9;
            }
        }
        .btn.compare.disabled{
            background: url("/catalog/view/theme/default/image/vs-disabled.svg");
            &:hover{
                opacity: initial;
            }
        }
    }

}


.product-wrapper .product-list:last-child .product-thumb{
    border-right: 1px solid transparent;
}

.product-list {
    border-top: 1px solid #E6E6E6;
    .product-thumb {
        overflow: hidden;
        padding-bottom: 0;
        border-left: 1px solid transparent;
        .image {
            float: left;
            display: inline-block;
            height: auto;
            width: 240px;
        }

        .caption {
            margin-left: 220px;
            margin-top: 22px;
            .product-description {
                display: block;
                font-size: 14px;
                line-height: 19px;
                margin-bottom: 34px;
            }
            .product-name {
                font-size: 16px;
                white-space: normal;
                text-overflow: inherit;
                overflow: visible;
                line-height: 21px;
                height: auto;
                margin-bottom: 8px;
            }
        }

        .button-group {
            margin: 0 0 10px 200px;
        }
    }
}